import request from '@/util/request'
export const LoginAPI = (data) => {
  // return request.post('/books/request', JSON.stringify(data))
  return request({
    url: '/Stu/Login',
    method: 'post',
    data: data
  })
}

//获取后端验证码
export const getCaptcha = () => {
  return request.get('/Tool/GetImage')
}

//用户注册
export const RegisterAPI = (data) => {
  return request({
    url: '/Stu/AddStu',
    method: 'post',
    data: data
  })
}
